package com.yangyang.notepad;
import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;

public class SharedViewModel extends ViewModel {
    private final MutableLiveData<Boolean> _fabVisibility = new MutableLiveData<>(true);

    public LiveData<Boolean> getFabVisibility() {
        return _fabVisibility;
    }

    public void setFabVisible(boolean visible) {
        _fabVisibility.setValue(visible);
    }
}